package com.erp.freight.domain.bo;

import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 运费试算国家分区明细（燕文物流公司运费格读取）业务对象 erp_product_freight_country_zone
 *
 * @author erp
 * @date 2023-07-11
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpProductFreightCountryZoneBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 物流公司
     */
    @NotBlank(message = "物流公司不能为空", groups = { AddGroup.class, EditGroup.class })
    private String logisticsCompany;

    /**
     * 国家
     */
    @NotBlank(message = "国家不能为空", groups = { AddGroup.class, EditGroup.class })
    private String country;

    /**
     * 邮编
     */
    @NotBlank(message = "邮编不能为空", groups = { AddGroup.class, EditGroup.class })
    private String zipCode;

    /**
     * 国家-英文
     */
    @NotBlank(message = "国家-英文不能为空", groups = { AddGroup.class, EditGroup.class })
    private String countryEn;

    /**
     * 国家-CODE
     */
    @NotBlank(message = "国家-CODE不能为空", groups = { AddGroup.class, EditGroup.class })
    private String countryCode;

    /**
     * 分区
     */
    @NotBlank(message = "分区不能为空", groups = { AddGroup.class, EditGroup.class })
    private String zone;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
